home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / grafica / pvrgjpeg / setup < prev    next >
Text File  |  1999-01-01  |  3KB  |  82 lines

  1. JPEG version 1.2
  2.  
  3. 1) Printing documentation:
  4.  
  5. Documentation is in the PostScript file doc.ps. It is about 50 pages
  6. long.
  7.  
  8. 2) Making the program.
  9.  
  10. The makefile should be setup for most UNIX systems as is.  Simply type
  11. "make" in the source code directory.
  12.  
  13. For SYSV only libraries, substitute the first line in the makefile
  14. #DEFINES = -DSYSV -DNOTRUNCATE for
  15. #DEFINES
  16.  
  17. which allows for SYSV libraries to be used instead.  The NOTRUNCATE
  18. flag avoids the lack of the ftruncate() call used in io.c.
  19.  
  20. Caution: For the compilation, the lexer.l file should be older than
  21. the lexer.c file otherwise many machines will try and lex the lexer.l
  22. file (thus clobbering potentially the lexer.c file).  In general, the
  23. tar will take out the lexer.l file first (it's specified to do that),
  24. so there shouldn't be any problems unless the directory is _copied_
  25. and then remade, in which case, the lexer.c file will be older because
  26. is lexically of lesser value than lexer.l.  This is a potential bug.
  27.  
  28. 3) Testing the program.
  29.  
  30. Two small test files are nonint.jpg and blkint.jpg.  If you wish to
  31. extract them, type
  32.  
  33. jpeg -d -s nonint.jpg
  34. jpeg -d -s blkint.jpg
  35.  
  36. The resulting files should be in 
  37.  
  38. nonint.jpg.1 nonint.jpg.2 nonint.jpg.3
  39. blkint.jpg.1 blkint.jpg.2 blkint.jpg.3
  40.  
  41. These files are raw raster-scan component files 128x128 for the Y
  42. (.1), 64x128 for the U(.2) and V(.3).
  43.  
  44. 4) Displaying the decompressed files.
  45.  
  46. The decompressed *.1 *.2 *.3 files may be displayed through the
  47. program "cv" which may be obtained by anonymous ftp from
  48. havefun.stanford.edu:pub/cv/CVv1.1.tar.Z.  If the program is in your
  49. current directory search-path, type
  50.  
  51. cv -iw 128 -ih 128 nonint.jpg -SF
  52.  
  53. or
  54.  
  55. cv -iw 128 -ih 128 blkint.jpg -SF
  56.  
  57. 5) Recompressing the sample files
  58.  
  59. Use the following commands to recompress the nonint.jpg.* component
  60. files into the nonint.jpg2 file:
  61.  
  62. jpeg -iw 128 -ih 128 -n -hf 2 nonint.jpg.1 nonint.jpg.2 nonint.jpg.3 \
  63.  -s nonint2.jpg
  64.  
  65. Use the following commands to recompress the blkint.jpg.* component
  66. files into the blkint.jpg2 file:
  67.  
  68. jpeg -iw 128 -ih 128  -hf 2 blkint.jpg.1 blkint.jpg.2 blkint.jpg.3 \
  69.  -s blkint2.jpg
  70.  
  71. Surprisingly, recompressing and decompressing the blkint should yield
  72. the same result. (The nonint files will not yield the same result -
  73. but very close - since the non-interleaved mode defaults to using the
  74. LUMINANCE quantization matrix for the first color component of each
  75. scan.) See the documentation for more details on other parameters.
  76.  
  77. 6) Some short interpreted programs for the encoder: (See Chapter 4 of
  78. the documentation behind these programs).
  79.  
  80. test.huff test.3stream  test.q
  81.  
  82.